package com.budweiser.user.service;



import com.budweiser.model.organ.Organization;
import com.budweiser.user.dto.OrganSelectTree;
import com.budweiser.user.dto.OrganizationTree;

import java.util.List;

public interface OrganizationService {
	/***
	 * 查询所有机构对象构建菜单
	 * 
	 * @return
	 */
	List<OrganizationTree> getOrganizationByAll();

	/***
	 * 查询所有机构对象构建下拉树
	 * 
	 * @return
	 */
	List<OrganSelectTree> getOrganSelectTrees();

	/***
	 * 新增机构
	 */
	void save(Organization organization);

	/***
	 * 批量刪除机构
	 * 
	 * @param longs
	 */
	void deleteIds(List<Long> longs);
    /***
     * 需改机构
     * @param organization
     */
	void update(Organization organization);

	Organization findOrganizationById(Long id);

}
